package net.osweb.crm.modules.sales.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Proofhistory entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sales_proofhistory")
public class ProofHistory implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 3955590711543641023L;
	private Integer id;
	private Integer userid;
	private Integer proofid;
	private String proofnumber;
	private String historyevent;
	private Timestamp historydate;
	private Timestamp userviewtime;
	private String comment;
	private Integer isavailability;

	// Constructors

	/** default constructor */
	public ProofHistory() {
	}

	/** full constructor */
	public ProofHistory(Integer userid, Integer proofid, String proofnumber,
			String historyevent, Timestamp historydate, Timestamp userviewtime,
			String comment, Integer isavailability) {
		this.userid = userid;
		this.proofid = proofid;
		this.proofnumber = proofnumber;
		this.historyevent = historyevent;
		this.historydate = historydate;
		this.userviewtime = userviewtime;
		this.comment = comment;
		this.isavailability = isavailability;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "proofid")
	public Integer getProofid() {
		return this.proofid;
	}

	public void setProofid(Integer proofid) {
		this.proofid = proofid;
	}

	@Column(name = "proofnumber")
	public String getProofnumber() {
		return this.proofnumber;
	}

	public void setProofnumber(String proofnumber) {
		this.proofnumber = proofnumber;
	}

	@Column(name = "historyevent", length = 127)
	public String getHistoryevent() {
		return this.historyevent;
	}

	public void setHistoryevent(String historyevent) {
		this.historyevent = historyevent;
	}

	@Column(name = "historydate", length = 19)
	public Timestamp getHistorydate() {
		return this.historydate;
	}

	public void setHistorydate(Timestamp historydate) {
		this.historydate = historydate;
	}

	@Column(name = "userviewtime", length = 19)
	public Timestamp getUserviewtime() {
		return this.userviewtime;
	}

	public void setUserviewtime(Timestamp userviewtime) {
		this.userviewtime = userviewtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

}